#include<stdio.h>
int main(){
	int a[100]={0},c[100]={0},result[100]={0},i,total=0;
	char b[100]={0};
	for(i=0;i<=100;i++)
	{
		scanf("%d%c%d\n",&a[i],&b[i],&c[i]);
		if(b[i]=='q') 
		{
			total=i;
			break;
		}
	}
	for(i=0;i<=100;i++)
	{
	   switch(b[i])
	   {
	   	case '+':
		   {
	   		result[i]=a[i]+c[i];
	   		printf("%d\n",result[i]);
			break;
		   }
	   	case '-':
		   {
	   		result[i]=a[i]-c[i];
	   		printf("%d\n",result[i]);
			break;
		   }
	   	case '*':
		   {
	   		result[i]=a[i]*c[i];
	   		printf("%d\n",result[i]);
			break;
		   }
	   	case '/':
		   {
	   		result[i]=a[i]/c[i];
	   		printf("%d\n",result[i]);
			break;
		   }
	   	case 0:
		   break;
	   }   
	}
	return 0;
}
